<%@page import="java.util.Date"%>
<%@page import="java.sql.Timestamp"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="shmged.com.shlcm.utils.CmIBAHelper"%>
<%@page import="wt.doc.WTDocument"%>
<%@page import="wt.fc.ReferenceFactory"%>
<%@page import="shmged.com.shlcm.utils.CmShmgedType"%>
<%@page import="shmged.com.shlcm.utils.CmSettings"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="wt.httpgw.URLFactory"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

	
<%
     String baseUrl = new URLFactory().getBaseHREF();
     String oid = request.getParameter("oid").trim();
     ReferenceFactory rf = new ReferenceFactory();
     WTDocument doc = (WTDocument)rf.getReference(oid).getObject();
     CmIBAHelper holder = new CmIBAHelper(doc);
     String title = doc.getName();
     SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
%>
<html>
<head>
    <title><%=title %></title>
	<link rel="stylesheet" type="text/css" href="<%=baseUrl %>shmged/javascript/util/jquery-easyui-1.3.3/themes/default/easyui.css">  
    <link rel="stylesheet" type="text/css" href="<%=baseUrl %>shmged/javascript/util/jquery-easyui-1.3.3/themes/icon.css">  
    <script type="text/javascript" src="<%=baseUrl %>shmged/javascript/util/jquery-easyui-1.3.3/jquery-1.7.2.min.js"></script>  
    <script type="text/javascript" src="<%=baseUrl %>shmged/javascript/util/jquery-easyui-1.3.3/jquery.easyui.min.js"></script> 
    <script type="text/javascript" src="<%=baseUrl %>shmged/javascript/util/shmged/commons.js"></script> 
</head>

<body>
<center>
<div style="width: 560px;">
<div class="easyui-panel" title="项目进度管理">
<form id="createProjectSchedu" method="post" ENCTYPE="multipart/form-data" action="<%=baseUrl %>shmged/jsp/com/shlcm/projects/createService.jsp">
     <input type="hidden" name="CONFcontainerName" value="<%=CmSettings.getSection("DefaultLocation").get("IMSContainerName", "海洋运营库") %>" />
	 <input type="hidden" name="CONFfolderPath" value="<%=CmSettings.getSection("DefaultLocation").get("ProjectsFoler", "/Default") %>" />
	 <input type="hidden" name="CONFsoftType" value="<%=CmShmgedType.ProjectScheduleEntry %>" />
	<table border="1px" bordercolor="00BFFF" cellspacing="0px" style="border-collapse:collapse" class="easyui-panel" width="100%">
		<tr>
			<td rowspan=1 colspan=4  align=center  height="40">项目进度管理</td>
   		</tr>
		<tr>
			<td align="right">项目进度编号:</td>
			<td colspan="3"><%=doc.getNumber() %></td>
		</tr>
		<tr>
			<td align="right">项目进度名称:</td>
			<td colspan="3"><%=doc.getName() %></td>
		</tr>
		<tr>
			<td align="right">项目计划开始时间:</td>
			<td align="left"><%=null == holder.getIBAValue("StartTime")?"":sdf.format(new Date(holder.getIBAValue("StartTime"))) %></td>
			<td align="right" >项目计划结束时间:</td>
			<td align="left"><%=null == holder.getIBAValue("EndTime")?"":sdf.format(new Date(holder.getIBAValue("EndTime"))) %></td>
		</tr>
		<tr>
			<td align="right">项目实际开始时间:</td>
			<td align="left"><%=null == holder.getIBAValue("ActualStartTime")?"":sdf.format(new Date(holder.getIBAValue("ActualStartTime"))) %></td>
			<td align="right">项目实际结束时间:</td>
			<td align="left"><%=null == holder.getIBAValue("ActualEndTime")?"":sdf.format(new Date(holder.getIBAValue("ActualEndTime"))) %></td>
		</tr>
		<tr>
			<td align="center" colspan="4" >项目计划</td>
		</tr>
		<tr>
			<td align="left" colspan="4" height="80">
			    解析项目计划文件结果展示
			</td>
		</tr>
		<tr>
			<td align="right" height="120">项目总体完成情况说明:</td>
			<td colspan=3  align=center></td>
		</tr>		
		</table>
</form>
</div>
</div>
</center>
</body>
</html>

